import request from '@/utils/request'

export default {
    /*简历图片的回显*/
    showBase64AdvatorImg(userId){
        return request({
            url:'/pdfApi/advatorImg/' + userId,
            method:'get'
        })
    },



    /*企业方简历下载*/
    downloadCompany(deliveryUserId){
      return request({
          url:'/pdfApi/pdfDownHR/' + deliveryUserId,
          method:'get',
          responseType:'blob'
      })
    },



    /*根据文件路径获取到base64编码*/
    getPathBase64(data){
       // console.log("filePath ===>>",filePath.toString())
      return request({
          url:'/pdfApi/pdfStreamReasumeHandeler',
          method:'post',
          data:data
      })
    },

    /*获取Base64编码*/
    getBase64(userId){
      return request({
          url:'/pdfApi/pdfStreamHandeler/' + userId,
          mehod:'get'
      })
    },


    prewiew(fileUrl){
        return request({
            url:'/pdfApi/readPdfFile',
            method:'get',
            params:{
                fileUrl: fileUrl
            },
            responseType: 'blob'
        })
    }
}
